
import base64

key = "eyJ1c2VyIjp7ImluZm8iOnsiaWQiOiIyMDE5MjE0OTUxIiwibmFtZSI6Ilx1OTA5M1x1NTYwOVx1NjU4NyIsInl4bSI6Ilx1NTZmZFx1OTY0NVx1NWI2Nlx1OTY2MiJ9LCJvcGVuaWQiOiJvSWFJSTBSSlNlb3gwVm5HOThSZy1GZF9EVjVnIiwidHlwZSI6Ilx1NjcyY1x1NzlkMVx1NzUxZiIsInlrdGgiOiIxNjY2MDgxIiwiYnVpbGQiOiIiLCJyb29tIjoiIiwidm9sdW50ZWVyX3VpZCI6IiIsIm1vcmUiOnsic2V4IjoiXHU3NTM3IiwiYmoiOiIzNDA4MTkwMSIsInp5bSI6Ilx1OGY2Zlx1NGVmNlx1NWRlNVx1N2EwYlx1ZmYwOFx1NGUyZFx1NTkxNlx1ZmYwOSIsIm5qIjoiMjAxOSIsIm1vcmVfZ2QiOiJcdTRlY2FcdTY1ZTVcdTY4MjFcdTU2ZWRBUFAiLCJtb3JlX2dkX3VybCI6Imh0dHBzOlwvXC93ZS5jcXUucHQifX0sInRpbWUiOnsidGVybSI6IjIwMjAtMjAyMVx1NWI2Nlx1NWU3NDFcdTViNjZcdTY3MWYiLCJ3ZWVrIjoxLCJkYXkiOiI0IiwiZGF0ZSI6IjIwMjAtMDktMTAiLCJwcmV2aWV3ZWQiOiJGIiwiaXNfdmFjYXRpb24iOiJGIn0sInRva2VuIjoiVUhjOVBRPT0iLCJpc19iaW5kIjp0cnVlfQ=="
decode_data = base64.b64decode(key).decode("utf-8")
print("返回的data=",decode_data)
# b64 乱码
# 返回的data= {"user":{"info":{"id":"2019218888","name":"\u9093\u5609\u6587",
# "yxm":"\u56fd\u9645\u5b66\u9662"},"openid":"oIaII0RJSeox0VnG98Rg-Fd_DV5g",
# "type":"\u672c\u79d1\u751f","ykth":"1666081","build":"","room":"","volunteer_uid":"",
# "more":{"sex":"\u7537","bj":"34081901","zym":"\u8f6f\u4ef6\u5de5\u7a0b\uff08\u4e2d\u5916\uff09",
# "nj":"2019","more_gd":"\u4eca\u65e5\u6821\u56edAPP","more_gd_url":"https:\/\/we.cqu.pt"}},
# "time":{"term":"2020-2021\u5b66\u5e741\u5b66\u671f","week":1,"day":"4","date":"2020-09-10",
# "previewed":"F","is_vacation":"F"},"token":"UHc9PQ==","is_bind":true}
